<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class AddDailyPayInfo2Table extends Migration
{
    protected $connection = 'stat';
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('stat_daily_pay_info', function (Blueprint $table) {
            $table->unsignedInteger('invite_rmb_num')->change();
            $table->unsignedInteger('uninvite_rmb_num')->change();
            $table->unsignedInteger('invite_user_num')->change();
            $table->unsignedInteger('uninvite_user_num')->change();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('stat_daily_pay_info', function (Blueprint $table) {
            //
        });
    }
}
